<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>h5的音视频</title>
	</head>
	<body>
		<video width="800" height="600" controls autoplay loop="3" id="v1">
			<source src="myvideo.mp4" type="video/mp4"></source>
			<source src="myvideo.ogv" type="video/ogg"></source>
			<source src="myvideo.webm" type="video/webm"></source>
			<object width="" height="" type="application/x-shockwave-flash" data="myvideo.swf">
				<param name="movie" value="myvideo.swf" />
				<param name="flashvars" value="autostart=true&amp;file=myvideo.swf" />
			</object>
			当前浏览器不支持 video直接播放，点击这里下载视频: <a href="myvideo.webm">下载视频</a>
		</video>
		<audio src="" controls autoplay loop></audio>
		<script>
			var v1 = document.getElementById("v1")
			v1.pause();
			v1.play()
		</script>
	</body>
</html>